package com.vigor.bear.web.bean;

import java.util.List;

import com.vigor.bear.web.constants.ResourceType;

public class Resource extends DataModel {

	// 编号
	private int reid;

	// 名称
	private String name;

	// 资源类型
	private int type = ResourceType.MENU;

	// 权限字符
	private String permissions;

	private String url;

	// 父级ID
	private int pid;

	// 排序用 A01,A0101,A0102
	private String sorted;
	
	private String iconclass;
	
	private List<Resource> menus;

	public int getReid() {
		return reid;
	}

	public void setReid(int reid) {
		this.reid = reid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getPermissions() {
		return permissions;
	}

	public void setPermissions(String permissions) {
		this.permissions = permissions;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getSorted() {
		return sorted;
	}

	public void setSorted(String sorted) {
		this.sorted = sorted;
	}

	public String getIconclass() {
		return iconclass;
	}

	public void setIconclass(String iconclass) {
		this.iconclass = iconclass;
	}

	public List<Resource> getMenus() {
		return menus;
	}

	public void setMenus(List<Resource> menus) {
		this.menus = menus;
	}

}
